<?php
    if($this->alt)
    {
        $style = "background: #CCFFEE";
    }
    else
    {
        $style = "";
    }
?>
<tr style="<?=$style?>">
    <td >
        <?=$this->item->id ?>
    </td>
    <td >
        <?=$this->item->name ?>
    </td>
</tr>